import { axios } from '@/utils/request'

/**
 * 查询其他入库
 *
 * @author Eric
 * @date 2021-04-23 16:52:20
 */
export function storageOtherPage (parameter) {
  return axios({
    url: '/storageOther/page',
    method: 'get',
    params: parameter
  })
}

/**
 * 其他入库列表
 *
 * @author Eric
 * @date 2021-04-23 16:52:20
 */
export function storageOtherList (parameter) {
  return axios({
    url: '/storageOther/list',
    method: 'get',
    params: parameter
  })
}

/**
 * 添加其他入库
 *
 * @author Eric
 * @date 2021-04-23 16:52:20
 */
export function storageOtherAdd (parameter) {
  return axios({
    url: '/storageOther/add',
    method: 'post',
    data: parameter
  })
}

/**
 * 编辑其他入库
 *
 * @author Eric
 * @date 2021-04-23 16:52:20
 */
export function storageOtherEdit (parameter) {
  return axios({
    url: '/storageOther/edit',
    method: 'post',
    data: parameter
  })
}

/**
 * 删除其他入库
 *
 * @author Eric
 * @date 2021-04-23 16:52:20
 */
export function storageOtherDelete (parameter) {
  return axios({
    url: '/storageOther/delete',
    method: 'post',
    data: parameter
  })
}

/**
 * 查询其他入库详情
 *
 * @author Eric
 * @date 2021-04-04 08:55:37
 */
export function storageOtherDetail (code) {
  return axios({
    url: '/storageOther/detail',
    method: 'get',
    params: { otherStorageCode: code }
  })
}
